﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="News_Type_Manage.aspx.cs"
    Inherits="Admin_NewsType_manager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理信管系简介-河北大学管理学院信息管理系</title>
    <meta name="Keywords" content="河北大学管理学院信息管理系" />
    <meta name="Description" content="河北大学管理学院信息管理系官方网站" />
    <meta name="Author" content="朱胜贤、孙旭峰、水亚亚、张文元、项玥、吕芳、吴凡、谢静、李亚慧" />
    <meta name="Copyright" content="本系统版权归 河北大学信管团队 所有。All Rights Reserved" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../CSS/AD_Pub.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="Container">
        <div id="Header">
            新闻类别管理
        </div>
        <div id="PageBody">
            <div class="line1">
                <div class="lineLeft">
                    新闻类别</div>
                <div class="lineRight">
                    <asp:TextBox runat="server" ID="txtNewsTypeNew"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="txtNewsTypeNewRequired" runat="server" ForeColor="Red"  ControlToValidate="txtNewsTypeNew"
                        ErrorMessage="类别不能为空"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="line6">
                <div class="lineLeft">
                    类别简介</div>
                <div class="lineRight">
                    <asp:TextBox runat="server" ID="txtNewsIntroNew" Height="110px" Width="350px" 
                        TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="textNewsIntroNewREquired" ForeColor="Red" runat="server" ControlToValidate="txtNewsIntroNew"
                        ErrorMessage="简介不能为空"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div id="bottom">
                <asp:Button ID="CreateNewNewsType" CssClass="btn" runat="server" Text="确认" OnClick="CreateNewNewsType_Click" />
                <asp:Button ID="CancelNewNewsType" CssClass="btn" runat="server" Text="取消" OnClick="CancelNewNewsType_Click" /></div>
            <hr />
            <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
            <asp:GridView ID="GV" runat="server" AutoGenerateColumns="False" CellPadding="3"
                GridLines="Vertical" OnRowCreated="GV_RowCreated" OnRowDeleting="GV_RowDeleting"
 
                AllowPaging="True" OnPageIndexChanging="GV_PageIndexChanging" 
                PageSize="20" EmptyDataText="无类别！" 
                onselectedindexchanging="GV_SelectedIndexChanging" 
                onselectedindexchanged="GV_SelectedIndexChanged">
                <Columns>
                    <asp:BoundField DataField="newsType" HeaderText="新闻类别名称" />
                    <asp:BoundField DataField="newIntro" HeaderText="新闻介绍" />
                    <asp:CommandField ButtonType="Button" EditText="" HeaderText="修改" 
                        SelectText="修改" ShowSelectButton="True" />
                    <asp:CommandField ShowDeleteButton="true"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除吗？')&quot;&gt;删除&lt;/div&gt; " />
                </Columns>
                <RowStyle CssClass="gv_row" />
                <SelectedRowStyle CssClass="gv_sel" />
                <PagerStyle CssClass="gv_pag" />
                <HeaderStyle CssClass="gv_hea" />
                <AlternatingRowStyle CssClass="gv_alt" />
                <FooterStyle CssClass="gv_foo" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
